Ext.define('wmf.model.keyword.keyword', {
    extend: 'Ext.data.Model',
    fields: [
        { name: 'id', type: 'string' },
        { name: 'operateType', type: 'string'},
		{ name: 'operateType1', type: 'string',convert: function(v, record){
			var value = record.data.operateType;
			if(value == "1"){
				return "新增";
			}else if(value == "2"){
				return "删除";
			}else{
				return value;
			}
        }},
        { name: 'filePath', type: 'string' },
        { name: 'originalCount', type: 'string' },
        { name: 'failCount', type: 'string' },
        { name: 'status', type: 'string' },
		{ name: 'status1', type: 'string' ,convert: function(v, record){
			var value = record.data.status;
			if(value == "0"){
				return "待处理";
			}else if(value == "1"){
				return "排队中";
			}else if(value == "2"){
				return "处理中";
			}else if(value == "3"){
				return "处理成功";
			}else if(value == "4"){
				return "处理失败";
			}else{
				return value;
			}
        }},
        { name: 'operateTime', type: 'string' },
        { name: 'finishTime', type: 'string' },
        { name: 'operateTime1', type: 'string' ,convert: function(v, record){
        	return wmf.data.mydateformat(record.data.operateTime);
        }},
        { name: 'finishTime1', type: 'string' ,convert: function(v, record){
        	return wmf.data.mydateformat(record.data.finishTime);
        }},
        { name: 'latestOperateTime1', type:'string' ,convert: function(v, record){
        	return wmf.data.mydateformat(record.data.latestOperateTime);
        }},
        { name: 'reason', type: 'string' },
        { name: 'operator', type: 'string' },
		{ name: 'keyword', type:'string'},
		{ name: 'latestOperator', type:'string'},
		{ name: 'latestOperateTime', type:'string'}
    ]
});